package com.chx.three.mama.model;

import org.json.JSONException;
import org.json.JSONObject;

/**
 * Created by Hainuo on 2015/3/25.
 */
public class FeelingDiary {
    private String babyBirth;
    private String day;
    private String content;
    private String month;
    private String time;
    private String isFirst;
    private String id;
    private String imgUrl;
    private boolean isShow;

    public void parseJson(JSONObject object){
        try {
            id = object.getString("id");
            babyBirth = object.getString("baby_birth");
            day = object.getString("day");
            content = object.getString("content");
            month = object.getString("month");
            time = object.getString("time");
            isFirst = object.getString("isfirst");
            imgUrl = object.getString("pic_s");

        } catch (JSONException e) {
            e.printStackTrace();
        }
    }

    public boolean isShow() {
        return isShow;
    }

    public void setShow(boolean isShow) {
        this.isShow = isShow;
    }

    public String getImgUrl() {
        return imgUrl;
    }

    public void setImgUrl(String imgUrl) {
        this.imgUrl = imgUrl;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getBabyBirth() {
        return babyBirth;
    }

    public void setBabyBirth(String babyBirth) {
        this.babyBirth = babyBirth;
    }

    public String getIsFirst() {
        return isFirst;
    }

    public void setIsFirst(String isFirst) {
        this.isFirst = isFirst;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public String getMonth() {
        return month;
    }

    public void setMonth(String month) {
        this.month = month;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getDay() {
        return day;
    }

    public void setDay(String day) {
        this.day = day;
    }
}
